package com.ruoyi.huanghefd.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.huanghefd.domain.Worksheet;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.huanghefd.utils.PageBean;


/**
 * 工作票服务
 */
public interface WorksheetService extends IService<Worksheet> {
    /**
     * @param worksheets
     * @return com.ruoyi.huanghefd.domain.ResultWS
     * @Author gnplum
     * @Description //新增工作票
     * @Date 9:35 2023/10/31
     **/
    AjaxResult addWorksheet(Worksheet worksheets);

    /**
     * @param strWsCode
     * @return com.ruoyi.common.core.domain.AjaxResult
     * @Author gnplum
     * @Description //删除工作票
     * @Date 15:18 2023/10/31
     **/
    AjaxResult delWorksheet(String strWsCode);

    /**
     * @param worksheets
     * @return com.ruoyi.common.core.domain.AjaxResult
     * @Author gnplum
     * @Description //修改工作票
     * @Date 16:24 2023/10/31
     **/
    AjaxResult uptWorksheet(Worksheet worksheets);

    /**
     * @return com.ruoyi.huanghefd.domain.Worksheet
     * @Author gnplum
     * @Description //查询工作票 分页
     * @Date 9:39 2023/10/31
     **/
    PageBean queryWorksheetByPage(String strWsCode, String strWsDept, String strWsState, String strUserId, String strMailType,String strWsType, int pageNum, int pageSize);
    AjaxResult queryWorksheets(String strWsCode, String strWsDept, String strWsState, String strUserId, String strMailType);

    /**
     * @param userId
     * @return com.ruoyi.common.core.domain.AjaxResult
     * @Author gnplum
     * @Description //校验工单是否允许创建？ 存在正在执行的票，则不允许
     * @Date 23:44 2023/12/19
     **/
    AjaxResult verifyCreateSheets(String userId);

}
